<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%near_index}}".
 *
 * @property integer $id
 * @property string $name
 * @property string $title
 * @property string $stitle
 * @property integer $order
 * @property string $type
 * @property string $text
 * @property integer $add_time
 * @property integer $is_del
 */
class NearIndex extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%near_index}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['order', 'add_time', 'is_del'], 'integer'],
            [['name', 'title', 'stitle', 'type', 'text'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'title' => 'Title',
            'stitle' => 'Stitle',
            'order' => 'Order',
            'type' => 'Type',
            'text' => 'Text',
            'add_time' => 'Add Time',
            'is_del' => 'Is Del',
        ];
    }
}
